package com.kasinf.sample.mybatis.dal.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kasinf.framework.mybatis.core.dataobject.BaseDO;
import com.kasinf.framework.mybatis.core.dataobject.LogicDelDO;
import com.kasinf.framework.mybatis.core.type.EncryptTypeHandler;
import com.kasinf.framework.mybatis.core.type.LongListTypeHandler;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

/**
 * @Author : Kaiser
 * @Date: 2025/5/19  11:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("sys_user")
public class UserDO extends BaseDO implements LogicDelDO {

    @TableId
    Long id;

    String username;

    @TableField(typeHandler = EncryptTypeHandler.class)
    String password;

    String nickname;

    String email;

    String phone;

    Integer status;

    @TableLogic
    Boolean deleted;
}
